
<div id="tip_grid" class="tip_grid">
    <div class="tip">
        <a class="tip_btn" onclick="$('#code_2d').show()">点击关注</a>
        <a class="close"  onclick="$('#tip_grid').hide()"></a>
    </div>
</div>
<div id="code_2d" class="lightbox" style="display: none">
    <div class="code_2d">
        <a class="close_tip"  onclick="$('#code_2d').hide()">
            <img src="../images/icon_close.png"/>
        </a>
        <h3>为了更好地参与活动，请关注<span>"三亚生态环境局"</span>公众号</h3>
        <img src="<?=Yii::$app->controller->setting['office_account_qrcode']?>"/>
        <p>长按此图识别二维码关注</p>
    </div>
</div>

<style>
    .tip_grid
    {width:100%; height:2rem; line-height:2rem; padding:0.4rem 0; background-color:rgba(0,0,0,0.7); top:0; z-index:999; position: fixed}
    .tip
    {padding:0 0.5rem; position:relative; text-align:left;}
    .tip_btn
    {padding:0.35rem 0.5rem; color:white; font-size:0.85rem; background-color:#fd6900; text-decoration:none; -webkit-border-radius:0.1rem; -moz-border-radius:0.1rem; border-radius:0.1rem; }
    .close
    {position:absolute; right:0.5rem; top:50%; margin-top:-0.4rem; display:block; width:0.6rem; height:0.68rem; background:url("/images/close1.png") no-repeat center center; background-size:contain; vertical-align:middle;}
    .lightbox
    {position:fixed; top:0; left:0; width:100%; height:100%; background-color:rgba(0,0,0,0.5); z-index:1001; display:none;}
    .code_2d
    {width:15rem; height:18rem; position:absolute; left:50%; margin-left:-7rem; top:50%; margin-top:-9rem; background-color:white; -webkit-border-radius:0.1rem; -moz-border-radius:0.1rem; border-radius:0.1rem; text-align:center;}
    .code_2d img
    {display:block; width:10.8rem; height:10.8rem; border:none; margin:0 auto;}
    .code_2d h3
    {margin:1.0rem 0.5em 0.5rem 0.5em;; padding:0; font-size:0.85rem; font-weight:lighter;}
    .code_2d h3 span
    {color:#0055a5; margin:0 0.2rem;}
    .code_2d p
    {margin:0.5rem 0; padding:0; font-size:0.8rem; color:#555555;}
    .code_2d .close_tip
    {position: absolute;
        top: -0.65rem;
        right: -0.5rem;
        background: #fff;
        border-radius: 50%;
        padding: 0.3rem;}
    .code_2d .close_tip img
    {width:0.775rem; height:0.775rem;}
</style>